package com.ls.controller.yxsms;

import com.ls.service.IYxSmsService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 5g阅信模板 前端控制器
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
@Api(value = "app5g阅信模板相关接口", tags = "app5g阅信模板相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/yxSmsApp")
public class YxSmsAppController {
    private final IYxSmsService service;
    /**查询当前用户的所有模板*/
    @RequestMapping("/getPaging")
    public ResultData getPaging(@RequestParam @NotNull(message = "companyId不得为空") Long companyId) {
        return service.getPaging(companyId);
    }

}
